package com.sc.nft.service.impl;

import com.sc.nft.dao.MallActivityExchangeDao;
import com.sc.nft.entity.MallActivityExchange;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import com.sc.nft.service.MallActivityExchangeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * IP商城活动兑换配置表服务接口实现
 *
 * @author zxy
 * @since 2023-05-10 16:59:01
 * @description IP商城
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class MallActivityExchangeServiceImpl implements MallActivityExchangeService {
    private final MallActivityExchangeDao mallActivityExchangeDao;

    @Override
    public List<MallActivityExchange> getListByActivityIdAndSpecsid(Long mallActivityId, Long specsId,Long groupId) {
        return mallActivityExchangeDao.getListByActivityIdAndSpecsid(mallActivityId, specsId,groupId);
    }

    @Override
    public List<MallActivityExchange> getListByActivityIdAndSpecsidOld(Long mallActivityId, Long specsId) {
        return mallActivityExchangeDao.getListByActivityIdAndSpecsidOld(mallActivityId, specsId);
    }
}